package com.cxs.plan.mapper;

import com.cxs.plan.domain.entity.RoleWithMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【role_with_menu(角色关联菜单)】的数据库操作Mapper
* @createDate 2024-03-26 10:52:44
* @Entity com.cxs.plan.domain.entity.RoleWithMenu
*/
public interface RoleWithMenuMapper extends BaseMapper<RoleWithMenu> {

    void saveRoleWithMenu(@Param("roleId") Integer roleId, @Param("menuIds") List<String> menuIds);

    List<Long> selectMenuIdsByRoleId(@Param("roleId") Integer roleId);

    void deleteRoleWithMenuByRoleId(@Param("roleId") Integer roleId);
}




